Part Number Hot Search : 
9ZXL0831 BR1432K HC256DMB MA4M3010 10403 C1501 XC3S1000 LTC1685
Product Description
Full Text Search
 

To Download PIC16F785 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  summer 2010 adding intelligence to lighting applications led lighting design guide www.microchip.com/lighting led lighting solutions
2 led lighting solutions design guide www.microchip.com/lighting led lighting solutions advanced communication solutions for lighting zigbee? protocol ....................................................... 15 miwi? protocol ........................................................ 15 miwi? p2p protocol ................................................. 15 wi-fi interface .......................................................... 15 usb interface ........................................................... 16 ethernet interface ..................................................... 16 can and lin protocols .............................................. 16 automotive ambient lighting module reference design ( apgrd004) .................................. 16 temperature sensing solutions for power led applications ................................................ 17 logic output temperature sensors ................................ 17 resistor-programmable temperature switches ............... 17 using tc6501 open drain output for current set-point control .............................................. 18 using the tc6501 to provide mcu interrupt ................... 18 fan controller application using tc6502 ....................... 18 voltage output temperature sensors ............................. 19 power led thermal control circuit using mcp9700 and mcp1650 ............................................. 19 table of contents led lighting ................................................................ 3 led applications ......................................................... 3 efficient led control .................................................... 3 driving leds with a charge pump ................................. 4 mcp1252 charge pump backlight demonstration board (mcp1252dm-bklt) ................. 4 driving leds with a boost regulator ............................. 4 mcp1650 multiple white led demonstration board (mcp1650dm-led2) ................. 5 driving leds with a sepic regulator .............................. 5 mcp1650 3w white led demonstration board (mcp1650dm-led1) ................................................. 5 high efficiency led smart driver.................................... 6 adding intelligence C pic10f solutions .......................... 7 provide simple dimming control .................................... 8 integrate multiple tasks C pic12 and pic16 mixed signal solutions ....................... 8 internal 5v regulator .................................................... 8 generating pwm control signals ................................... 9 mixed-signal led drivers .............................................. 10 mcp1630 and mcp1631 high-speed pwm controllers .......................................................... 11 mcp1630 boost mode led driver demonstration board (mcp1630dm-led2) ................. 11 mcp1631hv digitally controlled programmable current source reference design (mcp631rd-dcpc1) ................................................. 11 digital control vs. analog control ................................... 12 low cost digital control ................................................ 12 high performance digital control ................................... 13 wired communication solutions for lighting 0-10v interface ......................................................... 14 digitally addressable lighting interface (dali) ............. 14 dali ballast software library ..................................... 14 dmx512 .................................................................. 14
www.microchip.com/lighting led lighting solutions design guide 3 led lighting solutions led lighting leds are no longer used just for providing the pretty red and green indicator lights on electronic equipment. advances in technology have allowed leds to be used as practical sources of illumination. the primary benefits of leds are long life, durability and efficiency. when driven properly, a power led can last tens of thousands of hours without a degradation of light output. the typical efficacy of a power led, measured in lumens per watt, is 40-80. this is several times greater than incandescent light sources and is only exceeded by fluorescent light sources. since the led is a solid-state device, it can withstand shock and vibration that would damage a filament bulb. led applications the benefits of led lighting are helpful in many types of lighting applications: ? automotive and aircraft cabin lighting ? automotive and aircraft instrument panel lighting ? architectural emergency exit lighting ? architectural color effect lighting ? industrial and outdoor lighting ? traffic and railway signals ? automotive brake lights ? dot matrix signs and video displays ? lcd display backlighting ? personal flashlights ? medical instrument and tool lighting ? digital camera flash and video light efficient led control leds must be driven with a source of constant current. most leds have a specified current level that will achieve the maximum brightness for that led without premature failures. an led could be driven with a linear voltage regulator configured as a constant current source. however, this approach is not practical for higher power leds due to power dissipation in the regulator circuit. a switch-mode power supply (smps) provides a much more efficient solution to drive the led. an led will have a forward voltage drop across its terminals for a given current drive level. the power supply voltage and the led forward voltage characteristics determine the smps topology that is required. multiple leds can be connected in series to increase the forward voltage drop at the chosen drive current level. the smps circuit topologies adopted to regulate current in led lighting applications are the same used to control voltage in a power supply application. each type of smps topology has its advantages and disadvantages as presented in the table below. this design guide presents two types of led driver solutions. first, an analog driver ic can be used independently or together with a mcu for added intelligence. second, the led drive function can be integrated into the mcu application. literature on the web an1114 C switch mode power supply (smps) topologies (part i), ds01114 an1207 C switch mode power supply (smps) topologies (part ii), ds01207 common smps topologies useful for led lighting regulator topology v in to v out relationship complexity component count comments charge pump -v out < v in < v out low medium C limited i out range C no inductors buck v in > v out medium medium C chopped i in C high side drive boost v in < v out medium medium C extra parts needed to isolate output from input sepic v out < v in < v out medium high C smooth i in C multiple outputs C two inductors buck-boost v out < v in < v out medium medium C single inductor C up to four switches flyback depends on transformer medium medium C transformer can provide electrical isolation C multiple outputs possible
4 led lighting solutions design guide www.microchip.com/lighting led lighting solutions driving leds with a boost regulator a boost regulator topology is used when the output voltage of the converter must be equal to or greater than the input voltage. a boost regulator is useful for driving a chain of leds connected in series. it is beneficial to drive multiple leds in series. this ensures that all leds receive the same amount of current and will have the same brightness level. using a coupled inductor in the boost circuit reducing the switching voltage requirements of the mosfet switch. the mcp1640 synchronous boost regulator can provide a stable operating voltage for an led from a single cell alkaline battery. the mcp1650 boost regulator uses an external switch so that it can be used for any type of load. an additional advantage of the mcp1650 in battery applications is the gated oscillator architecture which provides 2 duty cycles reducing high-peak inductor current and output ripple voltages. input voltages above 3.8v engage a 56% duty cycle and an 80% duty cycle when the input voltage drops below 3.8v, extending battery life in these applications. driving leds with a charge pump a charge pump power supply does not have inductors that are required in other smps topologies. this provides a more compact and less expensive circuit. the downside is that charge pumps cannot supply large amounts of current compared to the other topologies. charge pump circuits are most useful for backlighting applications. common applications include pcs, lcd displays and automotive instrumentation. mcp1252 charge pump backlight demonstration board (mcp1252dm-bklt) demonstrates the use of a charge pump device in an led application and acts as a platform to evaluate the mcp1252 device in general. light intensity is controlled uniformly through the use of ballast resistors. a pic10f206 mcu provides an enable signal to the mcp1252 and accepts a push-button input that allows the white leds to be adjusted to five different light intensities. literature on the web mcp1252/3 data sheet, ds21572 mcp1252 charge pump backlight demo board users guide, ds51551 mcp1252/3 evaluation kit users guide, ds51313 dg10 C power solutions design guide, ds21913 charge pump led driver using the mcp1252 3 1 7 8 2 4 56 c- fb gnd pg v in v out c+ shdn single li-ion cen pwm brightness control mcp1252-adj v in 0.9v to 1.7v v out 3.3v @ 100 ma c out 10 f 976 k 562 k c in 4.7 f l 1 4.7 h v out v fb v in sw en gnd alkaline mcp1640 mcp1640 single cell synchronous boost regulator
www.microchip.com/lighting led lighting solutions design guide 5 led lighting solutions mcp1650 multiple white led demonstration board (mcp1650dm-led2) the mcp1650 multiple white led demo board uses the mcp1650 ic to power the nine white leds which are connected in series. a pic10f202 microcontroller in a sot-23 6-pin package is used to provide the pwm signal to the mcp1650. it also accepts a push button input that allows the user to adjust the white leds to three different intensities of 100%, 50% and 25%. literature on the web mcp1640/b/c/d data sheet, ds22234 mcp1650/51/52/53 data sheet, ds21876 mcp1650 multiple white led demo board users guide, ds51586 an948 C efficiently powering nine white leds using the mcp1650, ds00948 an980 C designing a boost-switching regulator with the mcp1650, ds00980 dg10 C power solutions design guide, ds21913 9 leds 33v/15 ma off on v bat + - v in fb gnd nc ext nc cs shdn mcp1650 battery operated boost led driver example using the mcp1650 driving leds with a sepic regulator the single-ended primary inductance converter (sepic) regulator topology uses an additional inductor, but provides the following advantages for battery powered applications: the converter can buck or boost as the input voltage changes. the circuit topology provides inherent short-circuit protection due to the use of a coupling capacitor. mcp1650 3w white led demonstration board (mcp1650dm-led1) demonstrates the mcp165x boost controller product family in a battery-powered white led application with an input voltage range of 2.0v to 4.5v. literature on the web mcp1650 3w white led demo board users guide, ds51513 4.5-2.0v 3w led v bat + - v in lbo gnd fb ext lbi cs shdn mcp1651 off on v bat v bat low battery warning battery input to 3.6v 3w led driver (sepic converter)
6 led lighting solutions design guide www.microchip.com/lighting led lighting solutions literature on the web mcp1650/51/52/53 data sheet, ds21876 an980 C designing a boost-switching regulator with the mcp1650, ds00980 dg10 C power solutions design guide, ds21913 high efficiency led smart driver 9-13 volt systems easily adapt to a smart driver circuit to drive high power leds using the mcp1702, mcp1652 and a pic10f202. the mcp1702 directly connected to the 12 volt source creates a 5 volt bias supply capable of delivering 250 ma to the intelligent boost control circuit. the leds are powered by the source voltage boosted by the mcp1652, minimizing the current requirements for the 5v power system. a pic10f202 adds intelligence to the circuit providing a means for thermal protection, load open and short circuit protection as well as the capability of a user interface to control dimming and other features. low battery detect enables the designer to determine a trip point for a low battery condition to make smart adjustments to the circuit function with the pic10f202. the power good indication enables the designer to determine when output voltage conditions are correct. mcp165x driver devices device special features package mcp1650 standard device 8-pin msop mcp1651 low battery detect 8-pin msop mcp1652 power good indication 8-pin msop mcp1653 low battery detect and power good indication 10-pin msop 10 led string 700 ma, 34v dc pic10f202 mcp1652 v in gnd fb ext pg cs shdn nc user interface dimming output control mcp1703 5v ldo 9-13v dc led smart driver with 12v input
www.microchip.com/lighting led lighting solutions design guide 7 led lighting solutions adding intelligence C pic10f solutions led lighting applications can benefit from the intelligence of a mcu. the mcu can be used for a variety of tasks, including the user interface, communication, battery status monitoring and temperature measurement. the addition of a mcu to a design does not have to be complicated, space consuming, or expensive. microchip offers the pic10f family of mcus with devices that have 6 pins in a space saving sot-23 or 2 x 3 mm dfn style package. the oscillator and reset circuitry are inside the device. connect power, ground, and you get four i/o pins that can be programmed to do anything you want. its as simple as that. the pic10f pins can be used as analog or digital pins. two devices in the pic10f family have analog comparator modules. two pic10f devices are available with an 8-bit analog to digital converter (adc). there are only 33 assembly instructions to learn in order to write code for the pic10f. there are also c compilers are available for the pic10f family, if you prefer to write in a high-level language. pic10f 6-pin microcontroller family device flash program memory words data ram bytes 8-bit timer analog comparator module 8-bit adc module pic10f200 256 16 yes C C pic10f202 512 24 yes C C pic10f204 256 16 yes yes C pic10f206 512 24 yes yes C pic10f220 256 16 yes C yes pic10f222 512 24 yes C yes provide simple dimming control one application for a mcu in led lighting is brightness control. a power led can be dimmed by reducing the drive current. however, this is not the most efficient way to control the brightness of a led. a power led provides the best efficiency at the maximum rated drive current. better efficiency can be obtained by turning the led on and off using a low frequency pwm signal. the pwm signal is connected to the enable input of the smps control ic. the led is always driven at the maximum current level when it is on. the mcp1650 multiple white led demo board and the mcp1650 3w white led demo board both take advantage of the 6-pin pic10f206 mcu (see pages 5-7 for more information). the pic10f206 device provides the user button interface and generates the pwm control signal for the smps ic. the pic10f206 has an internal oscillator and reset circuit, so no external circuitry is required. the pic10f206 device could also be used to linearize the brightness control or monitor battery status in these applications. shown approximate size. package comparison sot-23 vs. msop and soic 6-sot (ot) 3 x 3 mm pic10f2xx 8-msop (ms) 3 x 5 mm 8-soic (sn) 5 x 6 mm 8-tdfn (mc/mny) 2 x 3 mm
8 led lighting solutions design guide www.microchip.com/lighting led lighting solutions integrate multiple tasks C pic12 and pic16 mixed signal solutions the led current drive function can be integrated with other tasks on the same mcu. members of the pic12f and pic16f device families provide the next step up from the pic10f family and facilitate highly integrated mixed signal designs in 8, 14 and 20-pin package options. the available peripherals in this series of devices include: shunt voltage regulator comparators op amps adc voltage reference hardware pwm (digital timebase or sr latch) these peripherals allow external power circuits to be directly controlled by the mcu. for a led driver application, the analog peripherals can be configured and interconnected in software to provide constant current regulation. this leaves the cpu free to run other tasks such as communication, dimming control or fault detection. internal 5v regulator the internal shunt voltage regulator option allows the mcu to be operated from a higher voltage dc bus making it useful in ac line powered applications. only a series resistor is required between the power supply and the device v dd pin. devices with an hv designator in the part number have an internal regulator. compatible pinouts provide migration options 8-pin 20-pin 14-pin pic ? mcu v dd v ss 8, 14 and 20-pin pic? microcontroller mixed signal features device pins voltage reference analog comparator op amps adc digital pwm module pwm sr latch pic12f609/pic12hv609 8 C 1 CC C C pic12f615/pic12hv615 8 C 1 C 10-bit 1 C pic12f1822 8 yes 1 C 10-bit 1 1 pic16f610/pic12hv610 14 C 2 C C C 1 pic16f616/pic16hv616 14 C 2 C 10-bit 1 1 PIC16F785/pic16hv785 20 yes 2 2 10-bit 1 2 pic16f1828 20 yes 2 C 10-bit 4 1 note: hv part numbers have internal shunt voltage regulator. easy migration the 8, 14 and 20-pin devices in the pic12f and pic16f families have compatible pin-outs for upward and downward migration. common connections such as power and ground are located in the same positions on the package footprint so that an 8-pin design can easily be expanded to a 14 or 20-pin design. literature on the web an1035 C designing with hv microcontrollers, ds01035 PIC16F785/hv785 device data sheet, ds41249 web links www.microchip.com/8bit
www.microchip.com/lighting led lighting solutions design guide 9 led lighting solutions generating pwm control signals there are multiple ways to generate pwm control signals to control power circuits. devices with the capture-compare-pwm (ccp) module can generate pwm signals to control power circuits using an on-chip digital timebase. the signal pulse width is controlled by the mcu clock and a duty cycle register. the enhanced ccp (eccp) module allows one pwm signal to control 2 or 4 output pins for half-bridge or h-bridge control, respectively. devices that have a comparator and the eccp module can use the comparator signal to control the turn-off time of the pwm signal. devices with comparators and a pwm sr latch can use comparator signals and/or clock pulses to turn the latch output on and off. pic12hv615 v dd buck topology driver drive level - + v ss v bus other device options: pic12f1822 pic16f1823 C + comparator buck led driver using a comparator an external pwm peripheral ic may be used. this option is useful when multiple high speed pwm channels are required. pwm signals can be generated using software and i/o pins. this option is less costly when pwm frequency and duty cycle resolution requirements are not too high. a pic microcontroller with an on-chip comparator such as the pic12f609 can be used to implement a simple led driver. the pic12hv609 adds an internal regulator, allowing operation from a dc bus higher than 5 volts. literature on the web an874 C buck configuration high-power led driver, ds00874 an1074 C software pwm generation for led dimming and rgb color applications, ds01074 r b g pic12hv615 adc input color set rgb led 50 ma other device options: pic12f1822 pic16f1827 user interface v in rgb color led application using pic12hv615
10 led lighting solutions design guide www.microchip.com/lighting led lighting solutions pic16hv785 digital io oa1 comp1 oa2 comp2 v bus led string temp sensor pwm voltage ref. 5v reg. int osc bor cpu C + C + C + C + 10-bit adc pic16hv785 boost led driver application mixed-signal led drivers some devices, such as the pic16f616, have a sr latch module that can be used in many different ways along with the comparators and other digital signal events. events such as clock pulses or comparator signals can be programmed to set or reset the sr latch. these programming options allow almost any kind of control signal to be generated. the PIC16F785 has two on-chip op amps, two on-chip comparators, two sr latch pwm modules and an adjustable voltage reference. this combination of peripherals can be digitally configured to implement a wide variety of smps circuit topologies. literature on the web an1035 C designing with hv microcontrollers ds01035 an1047 C buck-boost led driver using the PIC16F785 mcu, ds01047 an1271 C offline power converter for high brightness leds using the pic16hv785 microcontroller, ds01271 PIC16F785/hv785 device data sheet, ds41249 pic16hv785 comp1 comp2 oa1 led string oa2 i sense pwm dimming control ac ref r fb C + C + C + pwm voltage ref. 5v reg. int osc bor cpu C + 10-bit adc mcp1402 pwm input filter v bus v bus v bus pic16hv785 flyback converter with pfc and dimming control
www.microchip.com/lighting led lighting solutions design guide 11 led lighting solutions mcp1630 and mcp1631 high-speed pwm controllers the mcp1630 and mcp1631 offer another method that can be used to generate high speed pwm signals for high power led drivers. the mcp1630 is an 8-pin device that contains the components needed to generate an analog pwm control loop, including an error amplifier, comparator and a high current output pin to drive a power transistor. the mcp1630 is designed to be used with a mcu that provides a reference clock source. the mcu controls the pwm frequency and maximum duty cycle. the switching frequency can be up to 1 mhz, depending on the application requirements. the mcu can also control the reference input for the error amplifier when dimming or soft start functions are required. multiple mcp1630 devices can be attached to a mcu to support multiple power channels. the mcp1630 can be used to solve advanced power supply issues. when multiple mcp1630 devices are used, phase offsets can be applied to each clock input to reduce bus current ripple. for applications that are sensitive to emi, dithering can be applied to the clock signal to reduce radiated energy at a given frequency. the mcp1631 is a 20-pin device which, in addition to the mcp1630 includes an internal 5v or 3.3v regulator, shutdown control, overvoltage protection, oscillator disable and 1x and 10x gain amplifiers. mcp1630 boost mode led driver demonstration board (mcp1630dm-led2) this demo board is a step-up, switch-mode, dc-dc converter used for power led applications. the demo board provides a 350 ma or 700 ma constant current source with a jumper selection. the input operating voltage range is 9-16 vdc and the board can supply up to 30w to a string of power leds. mcp1631hv digitally controlled programmable current source reference design (mcp631rd-dcpc1) this board provides a sepic dc-dc converter for power led and battery charging applications. the input voltage range is 3.5-16 vdc and the maximum power output is 8.5w. literature on the web mcp1630/mcp1630v device data sheet, ds21896 mcp1631 device data sheet, ds22063 current feedback thermal feedback pic12hv615 mcu mcp1630 pwm controller 5v 5v 10 led string 700 ma, 34v dc user interface 9-13v dc clock reference mcp9700 temp sensor mcp1630 boost mode led driver
12 led lighting solutions design guide www.microchip.com/lighting led lighting solutions low cost digital control some power supply applications require fast dynamic response to compensate for load changes. in these applications, a fast adc and fast calculation performance are required. however, a led provides a stable load for a constant-current power supply. therefore, a fast adc and fast processing power are not always required to implement a digital control loop for a led driver application. a low-cost device in the pic12f or pic16f family with a ccp peripheral and an adc can be used to implement a led driver using digital control. the ccp peripheral is used in pwm mode to control the power supply circuit. operating from the internal 8 mhz device oscillator, the ccp can provide pwm frequencies above 100 khz to keep power component sizes small. since the led provides a constant load, it is sufficient to sample the output current and adjust the pwm duty cycle at a much lower rate. a sample rate of 1000 hz is ideal for many applications. digital control vs. analog control leds can be driven with a fully digital control loop. instead of measuring the led current with an op amp or comparator circuit, the led current is sampled using an adc. some type of digital algorithm replaces the analog control loop. a proportional-integral-derivative (pid) control algorithm is commonly used because it has software coefficients that can readily be adjusted to affect the controller behavior. a digital pwm peripheral is used to drive the led. the digital algorithm computes an output based on its inputs and provides the duty cycle for the pwm peripheral. literature on the web an1138 C a digital constant current power led driver, ds01138 set point feedback controller output microcontroller feedback controller output digital controller feedback loop set set point analog controller adc pwm pid or digital filter algorithm controller C + comparison of digital control vs. analog control functions pic12hv615 buck led driver with digital control led string 15v 5v current sense filter adc input dc bus 125 khz pwm pic12hv615 mcp1402 gate driver other device options: pic12f1822 pic16f1823
www.microchip.com/lighting led lighting solutions design guide 13 led lighting solutions high performance digital control devices in the pic18f, pic24 and dspic33f families offer 8-bit and 16-bit solutions for fast calculation of digital control loops. in addition, these families have device variants with fast adc peripherals and specialized pwm modules that are optimized for power control applications. a selection of devices for digital power control is shown in the table below. there are many other microchip devices that could be used, but these devices represent low-cost and small package choices. devices in the pic18f family have an 8-bit cpu with a hardware multiplier. the pic18 is a good choice for moderate control loop rates (1-10 khz). devices in the dspic33f family have a 16-bit cpu with dsp resources. this family is a good choice if you need to execute multiple control loops at a faster rate. devices in the pic24 family offer an intermediate solution with 16-bit calculation performance. the dspic33fj06gs202 device has a power supply pwm module that can generate high switching frequencies with very fine edge resolution. this pwm module can also generate phase shifted pwm signals for advanced power supply applications. the 28-pin dspic33fj06gs202 device can provide a highly integrated solution for led lighting applications. the pwm peripheral can drive 3 strings of leds, replacing 3 separate analog control ics. furthermore, there are resources left over for active power factor correction (pfc) and digital communications. led lighting development kit reference design the led lighting development kit demonstrates the capabilities of microchips gs series of dspic digital signal controllers (dsc) in high brightness (hb) led applications. more information is available at: www.microchip.com/led. web links www.microchip.com/smps www.microchip.com/pic24 www.microchip.com/pic18 multiple led driver application with pfc v ac l pfc v bus i1 i2 i3 drive 2 drive 3 drive 1 i1 i2 i3 led drive 1 led drive 2 led drive 3 v bus pfc pfc drive v ac 120 v ac pfc drive dspic33fj06gs202 mcp1416 serial comm. gpio 40 mips dsp 10-bit adc output compare pwm3 pwm1 pwm2 pwm4 selected devices for digital power control device pins architecture adc pwm pic18f23k22 28 8-bit mcu 10-bit, 100 ksps 3 enhanced, 2 standard pic24fj16ga002 28 16-bit mcu 10-bit, 500 ksps 5 standard dspic33fj06gs202 28 16-bit dsc 10-bit, 2 msps 4 power supply
14 led lighting solutions design guide www.microchip.com/lighting led lighting solutions dmx512 the dmx512 interface (ansi e1.11) has gained great popularity in theatrical/entertainment lighting applications because of its simplicity and low cost. it is based on a 250 kbaud asynchronous serial interface that uses the standard rs-485 differential line transceivers. transmitter and receivers can be implemented on most pic microcontrollers in a few lines of code. pic microcontrollers that offer a eusart peripheral allow for the simplest and most efficient implementation of the protocol. application note an1076 offers an example implementation of both a transmitter and typical dmx512 receiver on a pic18f2420 model. the figure below shows an application example where a pic24fj16ga002 implements a dmx512 receiver to control three pwm output channels (each capable of 16-bit resolution). literature on the web an1076 C using a pic microcontroller for dmx512 communication wired communication solutions for lighting many lighting applications require some form of communication for remote control but also for diagnostic purposes. some of the most common interfaces used in lighting are: 0-10v dmx512 digitally addressable lighting interface (dali) 0-10v interface all pic microcontroller families offer models that integrate an analog-to-digital converter peripheral with a minimum of 8-bit resolution that allows them to connect to the industry standard 0-10v interface with minimum external component count. most flash pic microcontroller models offer a 10-bit resolution adc, while 12-bit resolution is available on selected models. each i/o pin is protected by a pair of (clipping) diodes so to prevent latch-up and damages that could follow from the incorrect wiring of a 0-10v interface (over-voltage). there are different 0-10v specifications based on the intended application. the 0-10v control interface for controllable ballasts is defined in annex e of the iec60929 specification. the 0-10v control interface for the entertainment industry is defined by ansi e1.3-2001. digitally addressable lighting interface (dali) dali is a bi-directional digital protocol that requires a two wire connection system similar to the 0-10v interface, but offers individual lamp or group addressability in a bus configuration. the low speed manchester encoding system used allows for an inexpensive firmware implementation on most any pic microcontroller. many pic devices offering an analog comparator peripheral can implement an advanced power saving techniques as demonstrated in application note an809. application note an811 illustrates the implementation of a bridge between dali and a standard rs-232 serial interface. dali ballast software library a dali ballast software library is available for pic mcus that comply with the latest release of the iec60929 specification. contact your local sales office for availability. literature on the web an809 C digitally addressable dali dimming ballast an811 C the rs-232/dali bridge interface rs-485 transceiver pic24fj16ga002 dmx512 e u s a r t pwm1 pwm2 pwm3 pic24fj16ga002 controlling 3 pwm output channels d d r c s i i a c s e
www.microchip.com/lighting led lighting solutions design guide 15 led lighting solutions advanced communication solutions for lighting several advanced wired and wireless communication interfaces are being evaluated for use in a multitude of innovative lighting applications including: zigbee? and miwi? wireless protocols based on the ieee 802.15.4 standard wi-fi?, ieee 802.11 ethernet, ieee 802.3 usb can, lin zigbee? protocol the zigbee protocol is an industry standard protocol for wireless networking. specifically designed for low cost and relatively low bandwidth automation applications it allows the quick deployment of several networking flexible topologies, including star, cluster and mesh. pic microcontrollers offer the ideal combination of performance and low power features required to implement an efficient zigbee solution. microchip offers a free zigbee residential stack implementation for the pic18 and pic24 family of microcontrollers. more information can be found in application note an1232. microchip also offers zigbee pro stack along with public application profiles such as smart energy profile. miwi? protocol the miwi wireless networking protocol is a simple protocol designed for low data rate, short distance, low-cost networks. fundamentally based on ieee 802.15.4? for wireless personal area networks (wpans) later expanded to support microchip proprietary rf transceivers, the miwi protocol provides an easy-to-use alternative for wireless communication. in particular, it targets smaller applications that have relatively small network sizes and with few hops between. for more details, check application note an1066. miwi? p2p protocol microchip miwi p2p is one of the wireless protocols that is supported in miwi development environment (de). it is a variation of ieee 802.15.4, using microchips ieee 802.15.4 compliant and other proprietary rf transceivers, which are controlled by microchip 8, 16 or 32-bit microcontroller with a serial peripheral interface (spi). application note an1204 describes the microchip wireless (miwi) peer-to-peer (p2p) protocol and its differences from ieee 802.15.4. development tools mrf24j10 C a fully integrated 2.4 ghz ieee 802.15.4 compatible transceiver dm163027-4 C picdem z 2.4 ghz demonstration kit dm183023 C zena? wireless network analyzer tool uses a simple graphical interface to configure the free microchip zigbee and miwi protocol stacks. web links www.microchip.com/wireless www.microchip.com/zigbee www.microchip.com/miwi wi-fi interface microchips wi-fi modules have been architected to ease integration at minimum system cost. designing from a module removes effort and time from having to design with a chip. all module components are tuned for best performance and have been tested for a variety of antennas. designers can simply design the module onto their board in order to go straight to production. because the mrf24wb0ma and mrf24wb0mb modules are certified, designers can save tens of thousands of dollars for certification fees and about six months of engineering time. for high volume customers, the best path is to start with the module to get to market rapidly. wireless tools dm183032 C picdem pic18 explorer board dm240001 C explorer 16 demo board ac164134 C mrf24j40ma pictail? plus daughter board ac164137 C mrf49xa pictail? plus daughter board ac164138 C mrf89xa pictail? plus daughter board ac164136-4 C mrf24wb0ma wi-fi pictail? plus daughter board web link www.microchip.com/wireless spi mrf24wb0ma/mb digital i/o interrupt power jtag debug reset hibernate matching circuitry flash pcb antenna interface aes, tkip encryption accelerator ram 2.4 ghz transceiver rom power amplifier (ma only)
16 led lighting solutions design guide www.microchip.com/lighting led lighting solutions eui-48? and eui-64? enabled mac address chips along with serial eeprom functionality a broad range of development tools to enhance the users experience development tools dm320004 C pic32 ethernet starter kit ac164123 C ethernet pictail? plus daughter board ac164121 C ethernet pictail? daughter board dm240001 C explorer 16 development board dm163024 C picdem.net ? 2 development board web link www.microchip.com/ethernet can and lin protocols both the can and lin protocols were originally created for the automotive market. can was designed as a high reliability and speed protocol (up to 1 mbit/s) for the harsh environment of the car electrical bus. lin was later added as a simple low cost alternative for the control of non-critical modules on a vehicle. both find occasional applications in lighting. many of the pic18f, pic24h, pic32 microcontrollers and dspic dscs include a complete can serial interface. the mcp25xx series of peripheral interfaces includes several can transceiver and can i/o expander devices. all pic microcontroller devices offering an eusart module (pic18f devices and most recent pic16f devices) offer direct support for lin bus connectivity with auto-baud rate detection and specific low power features. automotive ambient lighting module reference design (apgrd004) the automotive ambient interior lighting module reference design demonstrates microcontroller-based control of rgb led devices. this module can be controlled remotely by a master body controller via a lin bus. these modules are offered in a very compact form-factor board and are comprised of a pic12f615 mcu, an mcp2021 lin transceiver/voltage regulator, and rgb led. lin commands are interpreted by the module to control color mixing (16,383 colors) and intensity (1023 levels). the kit ships with 4?modules to assign as lighting zones in a lin or j2602 network. these modules can also be used in conjunction with the apgdt001 lin serial analyzer to quickly create a working lin network straight out of the box. development tools dm163005 C picdem lin demonstration board dm163011 C picdem can-lin 2 demonstration board apgdt001 C lin serial analyzer tool apgrd004 C ref design, automotive ambient lighting literature on the web an829 C lightkeeper automotive lighting control module, ds00829 web links www.microchip.com/can www.microchip.com/lin usb interface with the demise of the serial port, any application that requires a connection with a personal computer has now to be routed to the usb port. some innovative lighting applications occasionally require such a connection to be established. several models of pic18f microcontrollers incorporate a complete usb interface. several interface examples are offered to the designer to simplify the transition from serial port to usb and to integrate the application with existing microsoft windows? drivers. development tools dm163025 C picdem fs-usb demonstration board dm320003-2 C pic32 usb starter kit ii web link www.microchip.com/usb ethernet interface ethernet connectivity is becoming ubiquitous and most new office and industrial building are being wired for ethernet. as lower cost solutions are becoming available it is increasingly tempting to use ethernet for even the simplest control and diagnostic applications. microchip addresses the growing demand for a small and low-cost embedded ethernet solution by offering the following: pic32mx6xx and pic32mx7xx families with integrated 10/100 ethernet mac, dedicated dma interface supports packet scatter/gather for outstanding low cpu-overhead performance at full 100 megabit/seconds. industry standard rmii/mii interface, pre-programmed unique mac address. this family is fully compatible with 10/100/1000 base-t networks 10/100 base-t enc624j600 standalone ethernet controller s which are ieee 802.3 compliant, integrated with hardware cryptographic security engines and factory preprogrammed unique mac address. this family is fully compatible with 10/100/1000 base-t networks 10 base-t enc28j60 standalone ethernet controller and the pic18f97j60 family, which are ieee 802.3 compliant and fully compatible with 10/100/1000 base-t networks free licensed and robust tcp/ip stack, which is optimized for the pic18, pic24 and pic32 microcontroller and dspic digital signal controller families mcu int, wol ethernet interface controller
www.microchip.com/lighting led lighting solutions design guide 17 led lighting solutions logic output temperature sensors low cost temperature sensing devices such as the tc6501 and tc6502 (offered in sot-23 packages) can be conveniently placed near power led(s) to obtain a more accurate temperature monitoring and provide a logic output fault signal. the fault signal will be activated as soon as a factory- programmed temperature threshold is reached. temperature threshold values can be selected in increments of 20c as indicated in the following table. tc6501/tc6502 logic output temperature sensors device temperature threshold (c) tc6501p045vct 45 tc6501p065vct 65 tc6501p075vct 75 tc6501p095vct 95 tc6501p0105vct 105 tc6501p0115vct 115 tc6501p0120vct 120 tc6501p0125vct 125 resistor-programmable temperature switches the mcp9509/10 devices are programmable logic output temperature switches. the temperature switch threshold can be programmed with a single external resistor, which provides high design flexibility and simplicity. in addition, this family of devices provide user programmable features such as 2c and 10c (typical) switch hysteresis and output structure configuration. the mcp9509 provides an open drain output, whereas the mcp9510 is offered in three different user selectable output configurations: active-low/active-high push pull and active-low open-drain output with an internal 100?k pull-up resistor. the mcp9509/10 operate from 2.7v to 5.5v. this family is capable of triggering for temperatures -40c to +125c with high accuracy. mcp9509/10 resistor-programmable temperature switches device temperature threshold (c) mcp9509ct-e/ot -40oc to +125oc (falling hot to cold) mcp9509ht-e/ot -40oc to +125oc (rising cold to hot) mcp9510ct-e/ch -40oc to +125oc (falling hot to cold) mcp9510ht-e/ch -40oc to +125oc (rising cold to hot) t over t over tc6501 tc6502 gnd v cc hst gnd tc6501 tc6502 temperature sensing solutions for power led applications every light source has a specific energy efficiency. a certain portion of the energy supplied to it is wasted in the form of heat. one of the fundamental differences between power led technology and other traditional sources of light is in the way this heat is transferred. in fact, leds are particularly good at producing a radiation with very narrow range of frequencies typically designed to produce a specific color in the visible spectrum. there is very little infrared (heat) radiation produced. all the heat produced by the light source has to be transferred instead by contact. packaging technology plays an important role in facilitating the heat transfer from the led, but an accurate thermal analysis of the entire lighting application (total thermal resistance from junction to ambient) is required to guarantee that the maximum temperature of the junction is not exceeded during operation. in particular, white leds employ phosphor materials to convert the monochromatic light emitted into a wider spectrum, to produce a white color. the phosphors are even more sensitive to temperature and can be easily damaged if overheated. before the led junction reaches the maximum operating junction temperature (typically 125c) the temperature increase will have negative impact on a number of led characteristics including efficiency, light intensity, lifetime and color. while the safe way to design a power led application is to provide a low temperature resistance path to a heat sink that is dimensioned for the worst possible environmental and usage conditions, this might not always be possible for physical or cost constraints. for this reason driver ics used in led applications (such as the mcp1630 and mcp1650) often incorporate an over-temperature protection, performing what is substantially a device shutdown when the temperature rises above a given threshold. while this is effective to protect the device from reaching temperatures that could damage the led (or the phosphor layer for white led applications), the driver ic is not always guaranteed to be placed close to the emitting device(s). if the leds are arranged in modules, separate from the driving circuit, comprising several emitters connected in series or parallel, the temperature sensed by the driver could be considerably different from the actual module emitters junctions.
18 led lighting solutions design guide www.microchip.com/lighting led lighting solutions using tc6501 open drain output for current set-point control there are different ways that the tc6501 and tc6502 temperature sensors can be used in an application. the open-drain output of the tc6501 is useful for controlling signals in analog circuits. for example, the tc6501 could be used to limit a current reference set-point for a switch- mode power supply. it could also be connected to signals in op amp circuits to alter the behavior of the system when a temperature limit is exceeded (see figure below). using the tc6501 to provide mcu interrupt if a microcontroller is present and managing the application, a tc6502 with cmos active-high output signal can be used to provide an interrupt. the microcontroller in turn will be able to apply pwm dimming techniques to reduce the power output to the module (as shown in figure below). led dimming signal +5v pic12f683 v cc gp0 gnd v cc pwm tc6502 gnd gnd hist t over +12v fan +5v gnd gnd hist v cc t over tc6502 using tc6501 open drain output for current set-point control using the tc6501 to provide mcu interrupt fan controller application using tc6502 if a cooling device (fan) is available, a tc6502 device (with the hyst pin connected to v cc to obtain a 10c hysteresis threshold) can directly control a cooling fan to improve the heat transfer. +5v mcp1630 v in d1 dn v cc v ref gnd v in v ext cs fb comp osc in l tc6501 gnd gnd hist t over
www.microchip.com/lighting led lighting solutions design guide 19 led lighting solutions voltage output temperature sensors the most basic technique employed to protect the device from damaging over-temperature conditions is to provide a shutdown signal to the driver circuit when a pre-defined threshold is reached. however, this behavior can be unacceptable in applications where continuous lighting is required for safety or regulatory conditions. a more advanced approach can be obtained if a microcontroller is used to manage the lighting application providing closed loop control of the power supplied by the driver circuit. as the temperature approaches the threshold the current supplied can be reduced to limit the power output. by using a voltage output temperature sensor such as the mcp9700 and mcp9701, placed on the led module close to the emitting device, it is possible to provide a linear voltage feedback signal to a pic microcontroller. this solution ensures that the light source can always operate at a power level that remains within temperature limits. almost any kind of software algorithm can be implemented in the microcontroller to respond to the temperature feedback, allowing tremendous flexibility. mcp9700/9700a mcp9701/9701a 123 1 v dd v out gnd bottom view 5-pin sc-70 3-pin to-92 mcp9700/9701 only v dd v out gnd nc nc mcp9700/01 voltage output temperature sensors power led thermal control circuit using mcp9700 and mcp1650 alternatively a pic microcontroller can perform a direct pwm control (on/off) of the entire led driving circuit at low frequency (100-120 hz). by limiting the average on-time of the power led, the total power output can be limited. this technique has the advantage of stabilizing the application temperature while maintaining the led driving current constant therefore limiting the led color shift produced by forward current changes. the diagram below illustrates an example of a switching dc-dc converter design based on the mcp1650 boost regulator controlled by a 6-pin pic10f220 microcontroller. learn more the intelligent power supply design center ( www.microchip.com/power) features temperature sensing solutions, including application notes and product selection charts. literature on the web dg4 C temperature sensor design guide, ds21895 boost converter s hdn vcc gnd gp0 an1 gp2 gp3 user interface communication pwm power control mcp1650 pic10f220 v out v cc gnd mcp9700 temperature sensing high power led module power led thermal control circuit using mcp9700 and mcp1650
the microchip name and logo, the microchip logo, dspic, mplab and pic are registered trademarks of microchip technology incorporated in the u.s.a. and other countries. miwi, picdem, picdem.net, pictail and zena are trademarks of microchip technology incorporated in the u.s.a. and other countries. all other trademarks mentioned herein are property of their respective companies. ? 2010, microchip technology incorporated, all rights reserved. printed in the u.s.a. 7/10 ds01036f *ds01036f* microchip technology inc. 2355 w. chandler blvd. chandler, az 85224-6199 www.microchip.com support microchip is committed to supporting its customers in developing products faster and more efficiently. we maintain a worldwide network of field applications engineers and technical support ready to provide product and system assistance. in addition, the following service areas are available at www.microchip.com: support link provides a way to get questions answered fast: http://support.microchip.com sample link offers evaluation samples of any microchip device: http://sample.microchip.com forum link provides access to knowledge base and peer help: http://forum.microchip.com buy link provides locations of microchip sales channel partners: www.microchip.com/sales americas atlanta tel: 678-957-9614 boston tel: 774-760-0087 chicago tel: 630-285-0071 cleveland tel: 216-447-0464 dallas tel: 972-818-7423 detroit tel: 248-538-2250 kokomo tel: 765-864-8360 los angeles tel: 949-462-9523 santa clara tel: 408-961-6444 toronto mississauga, ontario tel: 905-673-0699 europe austria - wels tel: 43-7242-2244-39 denmark - copenhagen tel: 45-4450-2828 france - paris tel: 33-1-69-53-63-20 germany - munich tel: 49-89-627-144-0 italy - milan tel: 39-0331-742611 netherlands - drunen tel: 31-416-690399 spain - madrid tel: 34-91-708-08-90 uk - wokingham tel: 44-118-921-5869 asia/pacific australia - sydney tel: 61-2-9868-6733 china - beijing tel: 86-10-8528-2100 china - chengdu tel: 86-28-8665-5511 china - hong kong sar tel: 852-2401-1200 china - nanjing tel: 86-25-8473-2460 china - qingdao tel: 86-532-8502-7355 china - shanghai tel: 86-21-5407-5533 china - shenyang tel: 86-24-2334-2829 china - shenzhen tel: 86-755-8203-2660 china - wuhan tel: 86-27-5980-5300 china - xiamen tel: 86-592-2388138 china - xian tel: 86-29-8833-7252 china - zhuhai tel: 86-756-3210040 asia/pacific india - bangalore tel: 91-80-3090-4444 india - new delhi tel: 91-11-4160-8631 india - pune tel: 91-20-2566-1512 japan - yokohama tel: 81-45-471- 6166 korea - daegu tel: 82-53-744-4301 korea - seoul tel: 82-2-554-7200 malaysia - kuala lumpur tel: 60-3-6201-9857 malaysia - penang tel: 60-4-227-8870 philippines - manila tel: 63-2-634-9065 singapore tel: 65-6334-8870 taiwan - hsin chu tel: 886-3-572-9526 taiwan - kaohsiung tel: 886-7-536-4818 taiwan - taipei tel: 886-2-2500-6610 thailand - bangkok tel: 66-2-694-1351 1/26/09 sales office listing training if additional training interests you, then microchip can help. we continue to expand our technical training options, offering a growing list of courses and in-depth curriculum locally, as well as significant online resources C whenever you want to use them. regional training centers: www.microchip.com/rtc masters conferences: www.microchip.com/masters worldwide seminars: www.microchip.com/seminars elearning: www.microchip.com/webseminars resources from our distribution and third party partners www.microchip.com/training


▲Up To Search▲   

 
Price & Availability of PIC16F785

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X